<?php 

namespace Wechat\Controller;
use Wechat\Controller\BaseController;

/**
 * 素材管理控制器
 * @author 艾逗笔<765532665@qq.com>
 */
class MaterialController extends BaseController {

	/**
	 * 公用方法
	 * @author 艾逗笔<765532665@qq.com>
	 */
	public function _initialize() {
		$res['title'] = '图文';
		$res['url'] = U('news_list');
		$res['class'] = 'active';
		$nav[] = $res;

		$res['title'] = '图片';
		$res['url'] = U('lists');
		$res['class'] = '';
		$nav[] = $res;

		$res['title'] = '语音';
		$res['url'] = U('search');
		$res['class'] = '';
		$nav[] = $res;

		$res['title'] = '视频';
		$res['url'] = U('search');
		$res['class'] = '';
		$nav[] = $res;

		$res['title'] = '搜索';
		$res['url'] = U('search');
		$res['class'] = '';
		$nav[] = $res;
		$this->assign('nav', $nav);

	}

	/**
	 * 图文素材列表
	 * @author 艾逗笔<765532665@qq.com>
	 */
	public function news_lists() {
		$this->display();
	}
}

 ?>